package com.ezhan.message;

import com.ezhan.api.MessageNotifier;
import lombok.Setter;

public class NotifierManager {
    @Setter
    private static MessageNotifier messageNotifier;

    private NotifierManager(){}  //私有构造器

    public static void showSuccess(String message){
        if (messageNotifier != null){
            messageNotifier.showSuccess(message);
        }
    }
    public static void showError(String message){
        if(messageNotifier != null){
            messageNotifier.showError(message);
        }
    }
}
